package com.ksc.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component
public class Sender {
    //发件人邮箱
    @Value("${Email.sender}")
    public String sender;
    //发件人邮授权码
    @Value("${Email.code}")
    public String code;
    //对应的服务器域名，比如163邮箱的smtp.163.com，qq邮箱的smtp.qq.com
    @Value("${Email.host}")
    public String host;
    //身份验证开关
    @Value("${Email.auth}")
    public boolean auth;
}
